package com.base.lib.mvp.interactor;

import com.base.lib.net.HttpLoader;
import com.base.lib.net.IBaseRequest;
import com.base.lib.net.listener.IHttpListener;

import java.io.File;

/**
 * @author : neo.duan
 * @date : 	 2016/7/26 0026
 * @desc : 请描述该文件
 */
public class BaseInteractorImpl implements Interactor {

    public void sendPostRequest(IBaseRequest request, IHttpListener listener) {
        HttpLoader.getInstance().sendPostJsonRequest(request, listener);
    }

    public void sendGetRequest(IBaseRequest request, IHttpListener listener) {
        HttpLoader.getInstance().sendGetRequest(request, listener);
    }

    public void sendPutRequest(IBaseRequest request, IHttpListener listener) {
        HttpLoader.getInstance().sendPutRequest(request, listener);
    }

    public void sendUploadFileRequest(IBaseRequest request, File file, IHttpListener listener) {
        HttpLoader.getInstance().sendUploadFileRequest(request, file, listener);
    }


    @Override
    public void onDestroy() {

    }
}
